
#include "DBManager/Repository/HDF5/Result/Random/CROSS_PSDRepository.h"

#include "DBManager/Repository/HDF5/Base/HDF5RepositoryMacro.h"

HDF5_REG_NO_SORT_REPOSITORY (CROSS_PSDRepository)

using namespace SG::DBManager::HDF5;
using namespace SG::DataStructure;

CROSS_PSDRepository::CROSS_PSDRepository (HDF5Database& database)
    : SG::DBManager::HDF5::ResultRepositoryBase<Post::CROSS_PSDData> (database)
{}

void CROSS_PSDRepository::InitialDatasetInfo ()
{
    // 注册主键表，用于存储 CROSS_PSDData
    RegisterTableInfo<Post::CROSS_PSDData> ("/SG/RESULT/RANDOM/CROSS_PSD", MainDataset);

    // 注册索引表，用于存储 ID 索引
    RegisterTableInfo<Common::Id> ("/OWN/INDEX/RESULT/RANDOM/CROSS_PSDKEY", IndexDataset);

    // 注册域表，用于存储域 ID 和域相关的数据
    RegisterTableInfo<ResultDomainIndex> ("/INDEX/SG/RESULT/RANDOM/CROSS_PSD", DomainIndexDataset);
}